<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Dom</title>
    <script>
        function metdod() {
            //获取id="a1"
            var a = window.document.getElementById("a1");
            console.log(a.innerhTML)

            document.write(a.innerText);
            //直接向网页写出输出数据
            //innerText和innerHtml的区别？
            // innerHtml能解析Htmlbi
        }
    </script>

    <script src="js/jquery.js"></script>
</head>
<body>
<div name="d" onclick="method()">我是dive</div>
<div name="d">我是dive2</div>
<div name="d">我是dive3</div>
<div name="d">我是dive4</div>

<a href="#" id="a1">我是a1</a>
<!--<div name="d">我是dive4</div>-->
<a href="#" class="f">我是a2</a>
<P CLASS="F">我是p1</p>
/*/*    
</body>
</html>